package com.zxyankh.generator.math.practice.dto;

public class Options {
	// �Ƿ��и���
	private boolean negativeNumber;
	// �Ƿ��м���
	private boolean subtraction;
	// �͵����ޣ� ���ڸ��������������Сֵ
	private int sumCapped;
	// ��������
	private int problemNumber;

	public Options() {
		this.negativeNumber = false;
		this.subtraction = false;
		this.sumCapped = 100;
		this.problemNumber = 100;
	}

	public boolean isNegativeNumber() {
		return negativeNumber;
	}

	public void setNegativeNumber(boolean negativeNumber) {
		this.negativeNumber = negativeNumber;
	}

	public boolean isSubtraction() {
		return subtraction;
	}

	public void setSubtraction(boolean subtraction) {
		this.subtraction = subtraction;
	}

	public int getSumCapped() {
		return sumCapped;
	}

	public void setSumCapped(int sumCapped) {
		this.sumCapped = sumCapped;
	}

	public int getProblemNumber() {
		return problemNumber;
	}

	public void setProblemNumber(int problemNumber) {
		this.problemNumber = problemNumber;
	}

	@Override
	public String toString() {
		return "Options [negativeNumber=" + negativeNumber + ", subtraction=" + subtraction + ", sumCapped=" + sumCapped
				+ ", problemNumber=" + problemNumber + "]";
	}

	public String getOptions() {
		return "最大和[" + this.sumCapped + "],题目数量[" + this.problemNumber + "],是否有减法[" + (this.subtraction ? "是" : "否")
				+ "],是否有负数[" + (this.negativeNumber ? "是" : "否") + "]";
	}

}
